package com.xiaoshuidi.cloud.module.member.controller.app.user.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xiaoshuidi.cloud.framework.mybatis.core.dataobject.BaseDO;
import com.xiaoshuidi.cloud.module.member.api.user.dto.EmergencyContact;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "用户 APP - 用户个人信息 Response VO")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AppUserInfoRespVO extends BaseDO implements Serializable {
    private static final long serialVersionUID = 7000663525105747190L;
    private Long id;

    @Schema(description = "企业客户id")
    private Long superId;

    @Schema(description = "用户昵称")
    private String nickname;

    @Schema(description = "用户头像")
    private String avatar;

    @Schema(description = "帐号状态")
    private Integer status;

    @Schema(description = "民族")
    private String fork;

    @Schema(description = "年龄")
    private Integer age;
    @Schema(description = "手机")
    private String mobile;

    @Schema(description = "加密后的密码")
    private String password;

    @Schema(description = "证件类型")
    private String cardType;

    @Schema(description = "证件号")
    private String cardNo;

    @Schema(description = "性别1男2女")
    private Integer gender;

    @Schema(description = "邮箱")
    private String  email;

    @Schema(description = "真实姓名")
    private String name;

    @Schema(description = "1.大专2本科")
    private Integer education;

    @Schema(description = "是否已实名认证")
    private Boolean authenticated;

    @Schema(description = "认证时间")
    private LocalDateTime authenticatedTime;

    @Schema(description = "会员等级")
    private String level;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate birthday;

    @Schema(description = "紧急联系人信息")
    private List<EmergencyContact> emergencyContacts;

    @Schema(description = "积分")
    private Integer score;

    @Schema(description = "最后登录IP")
    private String loginIp;

    @Schema(description = "最后登录时间")
    private LocalDateTime loginDate;

    @Schema(description = "积分Id")
    private Long pointId;

    @Schema(description = "个人地址")
    private String address;

    @Schema(description = "工作单位")
    private String workUnit;

    @Schema(description = "第三方会员id")
    private String thirdMemberId;

    @Schema(description = "是否绑定支付标识")
    private Boolean bindFlag;


}
